package com.zhangtai.modules.service.impl.salary;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhangtai.modules.dao.SalaryGroupEmployeeDao;
import com.zhangtai.modules.dto.EmployeeOverworkPageDto;
import com.zhangtai.modules.entity.salary.SalaryGroupEmployeeEntity;
import com.zhangtai.modules.service.salary.SalaryGroupEmployeeService;
import com.zhangtai.utils.R;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class SalaryGroupEmployeeImpl extends ServiceImpl<SalaryGroupEmployeeDao, SalaryGroupEmployeeEntity> implements SalaryGroupEmployeeService {

    @Autowired
    private SalaryGroupEmployeeDao salaryGroupEmployeeDao;

    @Override
    public R saveOrUpdateE(SalaryGroupEmployeeEntity entity) {
        boolean b = this.saveOrUpdate(entity);
        if (!b) {
            return R.error();
        }
        return R.ok();
    }

    @Override
    public R saveOrUpdateBatchE(List<SalaryGroupEmployeeEntity> entityList) {
        boolean b = this.saveOrUpdateBatch(entityList);
        if (!b) {
            return R.error();
        }
        return R.ok();
    }
}